package net.cyl.manager;

import net.cyl.model.ProductOrderDO;
import org.springframework.stereotype.Component;

import java.util.Map;

public interface ProductOrderManager {
    int add(ProductOrderDO productOrderDO);

    ProductOrderDO findByOutTradeNoAndAccountNo(String outTradeNo,  Long accountNo);

    int updateOrderPayState(Long accountNo,String outTradeNo,String newState,String oldState);

    Map<String, Object> page(int page,int size,Long accountNo,String state );

    int del(Long accountNo,Long productOrderId);


}
